<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:68:"D:\phpstudy_pro\WWW\hsycmsv1/app/hsycms\view\database\importsql.html";i:1532398439;s:60:"D:\phpstudy_pro\WWW\hsycmsv1\app\hsycms\view\index\head.html";i:1533175385;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HSYCMS后台管理系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="/public/layui/css/layui.css?v=<?php echo time(); ?>" />
<link rel="stylesheet" type="text/css" href="/public/admin/css/touchTouch.css?v=<?php echo time(); ?>">
<link rel="stylesheet" href="/public/admin/css/admin.css?v=<?php echo time(); ?>" />
<script src="/public/admin/js/jquery.js?v=<?php echo time(); ?>"></script>
<script src='/public/tinymce/tinymce.min.js'></script>
<script src="/public/admin/js/validform5.3.2min.js"></script>
<script src="/public/layer//layer.js?v=<?php echo time(); ?>"></script>
<script src="/public/layui/layui.js?v=<?php echo time(); ?>"></script>
<script src="/public/admin/js/touchTouch.jquery.js"></script> 
<script src="/public/admin/js/admin.js?v=<?php echo time(); ?>"></script>
</head>
<body>

<div class="box">
<div class="box-head">
    <h2>还原数据库</h2>
  <a href="javascript:history.go(0);" class="btn fr"><i class="icon-refresh"></i> 刷新</a> </div>
<div class="table-responsive">
<table class="table">
  <tr>
    <th style="text-align:left; padding-left:31px;">备份文件名称</th>    
    <th>更新时间</th>
    <th width="340">操作</th>
  </tr>
  <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  <tr>
    <td class="td1"><?php echo $root.$vo; ?></td>
    <td><?php  echo date('Y-m-d H:i:s',filemtime($root.$vo))  ?></td>
    <td> <a href="<?php echo url('importsql',['at'=>'import','name'=>$vo]); ?>" class="btn"><i class="icon-check"></i> 还原备份</a>
    <a href="<?php echo url('downloadsql',['name'=>$vo]); ?>" target="_blank" class="btn green"><i class="icon-download"></i> 下载备份</a>
    <a href="javascript:void(0);" onclick="sycms.del('<?php echo url('delsql',['name'=>$vo]); ?>')" class="btn red"><i class="icon-trash-o"></i> 删除备份</a></td>
  </tr>
  <?php endforeach; endif; else: echo "" ;endif; ?> 
</table>
</div>
